#define _CRT_SECURE_NO_WARNINGS 1
#include "SeqList.h"


void STLTest1()
{
	STLNode* plist =NULL;
	/*STLPushBack(&plist, 1);
	STLPushBack(&plist, 2);
	STLPushBack(&plist, 3);
	STLPushBack(&plist, 4);*/
	STLPushFront(&plist, 1);
	STLPushFront(&plist, 2);
	STLPushFront(&plist, 3);
	STLPushFront(&plist, 4);
	STLPrint(plist);
}

void STLTest2()
{
	STLNode* plist = NULL;
	STLPushFront(&plist, 1);
	STLPushFront(&plist, 2);
	STLPushFront(&plist, 3);
	STLPushFront(&plist, 4);
	STLPrint(plist);

	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
	STLPopBack(&plist);
	STLPrint(plist);
}

void STLTest3()
{
	STLNode* plist = NULL;
	STLPushBack(&plist, 1);
	STLPushBack(&plist, 2);
	STLPushBack(&plist, 3);
	STLPushBack(&plist, 4);
	STLPrint(plist);

	STLPopFront(&plist);
	STLPrint(plist);
	STLPopFront(&plist);
	STLPrint(plist);
	STLPopFront(&plist);
	STLPrint(plist);
	STLPopFront(&plist);
	STLPrint(plist);
}

int main()
{
	STLTest3();
	return 0;
}
